/**
 * Created by hxpeng on 2017/4/28.
 */
(function () {
    'use strict';

    angular.module('App.pages.class.msg', [])
        .config(routeConfig);

    function routeConfig($stateProvider) {
        $stateProvider.state('msg', {
            url: "/msg",
            abstract: true,
            templateUrl: 'source/pages/page-tab.html',
        }).state('msg.list', {
            url: "/list",
            cache: false,
            views: {
                'kinder-view': {
                    templateUrl: 'source/pages/class/msg/msg-list.html',
                    controller:'MsgListCtrl as vm'
                }
            }
        }).state('msg.voice', {
            url: "/voice",
            params:{
                "toMemberId":null
            },
            cache: false,
            views: {
                'kinder-view': {
                    templateUrl: 'source/pages/class/msg/msg-voice.html',
                    controller:'NewAudioMsgCtrl as vm'
                }
            }
        }).state('msg.text', {
            url: "/text",
            params:{
                "studentArray":null
            },
            cache: false,
            views: {
                'kinder-view': {
                    templateUrl: 'source/pages/class/msg/msg-text.html',
                    controller:'NewTextMsgCtrl as vm'
                }
            }
        });
    }
})();